package com.ajk.server.service;
import java.util.List;

import com.ajk.server.model.TestQuestion;
import com.ajk.server.model.query.TestQuestionQuery;

/**
 * 测试题  <br>
 * t_test_question <br>
 * v1.0 2016-05-01
 */
 public interface TestQuestionService {
	
	/**
 	*根据ID删除 测试题
 	*/
 	public Integer deleteTestQuestionById(Integer id);
 	
 	/**
 	*新增 测试题
 	*/
 	public Integer batchInsertTestQuestion(List<? extends TestQuestion> testQuestions);
 	
 	/**
 	*新增 测试题
 	*/
 	public Integer insertTestQuestion(TestQuestion domain);
 
 	
 	/**
 	*更新 测试题
 	*/
 	public Integer updateTestQuestion(TestQuestion domain);
 	
 	/**
 	*根据ID查询 测试题
 	*/
 	public TestQuestion findTestQuestionById(Integer id);

	/**
 	*通过query 查询 测试题
 	*/
	public List<TestQuestion> findTestQuestionByQuery(TestQuestionQuery query);	
	
	/**
 	*通过query count总条数
 	*/
 	public Integer countTestQuestionByQuery(TestQuestionQuery query);
 	
 	/**
 	* 通过ids查询
 	*/
 	public List<TestQuestion> findTestQuestionByIds(List<Integer> ids);
 	
}	